package com.tuzhi.common.exception;

/**
 * 功能说明：
 *
 * @author abu
 * @version 1.1.0
 * @date 2023/2/20
 */
public class BusinessException extends RuntimeException {


    private String code;
    private String msg;

    public BusinessException(String message) {
        super(message);
        this.code = "-1";
        this.msg = message;
    }

    public BusinessException(String code, String message) {
        super(message);
        this.code = code;
        this.msg = message;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
